package zhh.tangbao.commodity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import zhh.tangbao.system.entity.DaoEntity;

/**
 * 2023/2/26
 * @author 粥灰灰
 * @version 1.0
 * 售卖机商品库存
 */

@TableName(value = "commodity_machine_stock")
@Data
@Accessors(chain = true)
public class CommodityMachineStock extends DaoEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 贩卖商品的机器ID  */
    private String machineId;

    /** 商品种类实体的ID  */
    private String commodityEntityId;

    /** 商品数量上限 */
    private Integer totalLimit;

    /** 缺货警报阈值 */
    private Integer warnThresholdValue;
}
